class MemoryModule:
    def __init__(self):
        self.history = []

    def update(self, retrieval, score, feedback):
        self.history.append({
            "retrieval": retrieval,
            "score": score,
            "feedback": feedback
        })

    def get_last_feedback(self):
        if self.history:
            return self.history[-1]['feedback']
        return None